﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using Framework;

namespace Enterprise
{
    public class BusinessCardCategoryConfig : ConfigService
    {
        static BusinessCardCategoryConfig()
        {
            ThumbnailWidth = ConfigurationManager.AppSettings["BusinessCardCategoryThumbnailWidth"].SafeToInt();
            ThumbnailHeight = ConfigurationManager.AppSettings["BusinessCardCategoryThumbnailHeight"].SafeToInt();
            ThumbnailPrefix = ConfigurationManager.AppSettings["BusinessCardCategoryThumbnailPrefix"].SafeToString();
            ImageSize = ConfigurationManager.AppSettings["BusinessCardCategoryImageSize"].SafeToInt();
            NormalWidth = ConfigurationManager.AppSettings["BusinessCardCategoryNormalWidth"].SafeToInt();
            NormalHeight = ConfigurationManager.AppSettings["BusinessCardCategoryNormalHeight"].SafeToInt();
            NormalPrefix = ConfigurationManager.AppSettings["BusinessCardCategoryNormalPrefix"].SafeToString();
            IsWaterMark = ConfigurationManager.AppSettings["IsBusinessCardCategoryWaterMark"].SafeToBool();
            WaterMarkFileName = ConfigurationManager.AppSettings["BusinessCardCategoryWaterMarkFileName"].SafeToString();
            WaterMarkRelativePath = ConfigurationManager.AppSettings["BusinessCardCategoryWaterMarkRelativePath"].SafeToString();
            IsGenerateThumbnail = ConfigurationManager.AppSettings["IsBusinessCardCategoryGenerateThumbnail"].SafeToBool();
            IsGenerateNormal = ConfigurationManager.AppSettings["IsBusinessCardCategoryGenerateNormal"].SafeToBool();
            IsAdaptive = ConfigurationManager.AppSettings["IsBusinessCardCategoryImageAdaptive"].SafeToBool();
            RelativePath = ConfigurationManager.AppSettings["BusinessCardCategoryImageRelativePath"].SafeToString();
            BusinessCardCategoryDepth = ConfigurationManager.AppSettings["BusinessCardCategoryDepth"].SafeToInt();
        }
        public new static int ThumbnailWidth { get; set; }

        public new static int ThumbnailHeight { get; set; }

        public new static int ImageSize { get; set; }

        public new static bool IsGenerateThumbnail { get; set; }

        public new static string ThumbnailPrefix { get; set; }

        public new static bool IsWaterMark { get; set; }

        public new static string RelativePath { get; set; }

        public new static string WaterMarkFileName { get; set; }

        public new static string WaterMarkRelativePath { get; set; }

        public new static bool IsGenerateNormal { get; set; }

        public new static bool IsAdaptive { get; set; }

        public new static int NormalWidth { get; set; }

        public new static int NormalHeight { get; set; }

        public new static string NormalPrefix { get; set; }

        public new static int BusinessCardCategoryDepth { get; set; }
    }
}
